<%-- 
    Document   : Employee
    Created on : May 9, 2012, 9:28:43 AM
    Author     : Nguyen Hung
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>
<html>
    <head>
        <script>
           
        </script>

        <style type="text/css">

            .smsContent{
                float: left;
                margin: 10px 10px 10px 100px;                   


            }
            .css_border{
                border-top: 1px solid #C4C0C9;
                border-left: 1px solid #C4C0C9;
            }
        </style>

    </head>

    <f:view>
        <body>
            <f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>
            <%--<a4j:repeat value="#{m300Bean.listM300US}" var="item">

                <h:outputText value="-  #{item.hoten} (#{item.mv304})" styleClass="qv402"/>


            </a4j:repeat>--%>
            <div class="smsContent">

                <table>
                    <a4j:repeat value="#{T950Bean.listT950CNL}" var="item" rowKeyVar="index">  
                        <tr class="table_row css_border">
                            <td class="table_cell cssCenter  <h:outputText rendered="#{index%2 !=0 && item.ht1 == null && item.ht == null}"  value="odd"/> <h:outputText rendered="#{item.ht1 != null && item.ht != null}"  value="add_fis1"/> <h:outputText rendered="#{item.ht1 == null && item.ht != null}"  value="add_fis"/>" style="width: 60px">
                                <div style="width: 40px;margin-left: 10px;">
                                    <h:panelGroup rendered="#{loginSession.right.DEB_LST_MOD}">
                                        <div style="width:20px;float: left;">
                                            <h:outputLink rendered="#{item.ht == null}"  value="financialInputCN.jsp?action=editCNLitem&pt950=#{item.pt950}&pn100=#{item.fn100}&page=debt1.jsp&height=282px&width=345px" styleClass="fancybox add_new" id="fancybox3">
                                                <img src="../images/edit.png" alt="edit" title="edit"/>
                                            </h:outputLink>

                                        </div>
                                    </h:panelGroup>
                                    <h:panelGroup rendered="#{loginSession.right.DEB_LST_DEL}">
                                        <div style="width:20px; float: right;">
                                            <h:outputLink value="deleteFinancial.jsp?action=delete&pt950=#{item.pt950}&page=debt.jsp&height=282px&width=345px" styleClass="fancybox add_new" id="fancybox4">
                                                <img src="../images/delete_1.png" alt="delete"  title="delete" />
                                            </h:outputLink>

                                        </div>
                                    </h:panelGroup>
                                </div>
                            </td>

                            <td class="table_cell cssCenter  <h:outputText rendered="#{index%2 !=0 && item.ht1 == null && item.ht == null}"  value="odd"/> <h:outputText rendered="#{item.ht1 != null && item.ht != null}"  value="add_fis1"/> <h:outputText rendered="#{item.ht1 == null && item.ht != null}" value="add_fis" />" style="width: 50px">

                                <h:outputLink  rendered="#{loginSession.right.DEB_LST_DOC}" style="margin-top: 5px;"  value="uploadfile.jsp?pc150=&page=debt.jsp&type=ALL&table=T950CN&KeepThis=true&amp;TB_iframe=true&amp;height=350&amp;width=550&amp;modal=true" styleClass="thickbox add_new">
                                    <img  src="../images/docs_icon.png" height="15px" width="15px" title="Add document"/> 
                                </h:outputLink>
                                <h:outputLink   value="viewdocumentT950.jsp?action=documentCN&height=282px&width=345px" styleClass="fancybox add_new" id="fancybox9">
                                    <img src="../images/eye.png" alt="view"  title="view" />
                                </h:outputLink>

                            </td>
                            <td class="table_cell cssCenter  <h:outputText rendered="#{index%2 !=0 && item.ht1 == null && item.ht == null}"  value="odd"/> <h:outputText rendered="#{item.ht1 != null && item.ht != null}"  value="add_fis1"/> <h:outputText rendered="#{item.ht1 == null && item.ht != null}" value="add_fis "/>" style="width: 60px">

                                <h:panelGroup rendered="#{loginSession.right.DEB_LST_DKD}">
                                    <h:outputLink disabled="#{item.flagforT9501}" rendered="#{item.ht == null}"  value="confirm.jsp?pt950=#{item.pt950}&table=flau&page=debt.jsp&height=150px&width=300px" styleClass="fancybox card_delete" >
                                        <img style="width:18px;height: 18px;" src="../images/check_alt.png" alt="Kiểm duyệt"  title="Kiểm duyệt" />                                               
                                    </h:outputLink>
                                    <h:outputLink disabled="true" rendered="#{item.ht != null}"  value="confirm.jsp?pt950=#{item.pt950}&table=flau&page=debt.jsp&height=150px&width=300px" styleClass="fancybox card_delete" >
                                        <img style="width:18px;height: 18px;" src="../images/check_false.png" alt="Kiểm duyệt"  title="Kiểm duyệt" />                                               
                                    </h:outputLink>

                                </h:panelGroup>
                                <h:panelGroup rendered="#{loginSession.right.DEB_LST_DXN}">
                                    <h:outputLink disabled="#{item.flagforT950}"  rendered="#{item.ht1 == null}" value="confirm.jsp?pt950=#{item.pt950}&table=appro&page=debt.jsp&height=150px&width=300px" styleClass="fancybox card_delete" >
                                        <img style="width:20px;height: 20px;" src="../images/tick_circle.png" alt="Xác nhận" title="Xác nhận" />                                               
                                    </h:outputLink>
                                    <h:outputLink disabled="true" rendered="#{item.ht1 != null}"  value="confirm.jsp?pt950=#{item.pt950}&table=flau&page=debt.jsp&height=150px&width=300px" styleClass="fancybox card_delete" >
                                        <img style="width:18px;height: 18px;" src="../images/check_false.png" alt="Xác nhận"  title="Xác nhận" />                                               
                                    </h:outputLink>
                                </h:panelGroup>

                            </td>
                            <td class="table_cell  <h:outputText rendered="#{index%2 !=0 && item.ht1 == null && item.ht == null}"  value="odd"/> <h:outputText rendered="#{item.ht1 != null && item.ht != null}"  value="add_fis1"/> <h:outputText rendered="#{item.ht1 == null && item.ht != null}" value="add_fis"/>" style="width: 70px">

                                <h:outputText value="#{item.tv001}"/>

                            </td>
                            <td class="table_cell cssCenter  <h:outputText rendered="#{index%2 !=0 && item.ht1 == null && item.ht == null}"  value="odd"/> <h:outputText rendered="#{item.ht1 != null && item.ht != null}"  value="add_fis1"/> <h:outputText rendered="#{item.ht1 == null && item.ht != null}" value="add_fis"/>" style="width: 100px">

                                <h:outputText value="#{item.bv051}"/> 

                            </td>
                            <td class="table_cell cssRight  <h:outputText rendered="#{index%2 !=0 && item.ht1 == null && item.ht == null}"  value="odd"/> <h:outputText rendered="#{item.ht1 != null && item.ht != null}"  value="add_fis1"/> <h:outputText rendered="#{item.ht1 == null && item.ht != null}" value="add_fis"/>" style="width: 100px">

                                <h:outputText value="#{item.tn951st}"/>   

                            </td>
                            <td class="table_cell cssCenter  <h:outputText rendered="#{index%2 !=0 && item.ht1 == null && item.ht == null}"  value="odd"/> <h:outputText rendered="#{item.ht1 != null && item.ht != null}"  value="add_fis1"/> <h:outputText rendered="#{item.ht1 == null && item.ht != null}" value="add_fis"/>" style="width: 50px">

                                <h:outputText value="#{item.money}"/> 

                            </td>
                            <td class="table_cell   <h:outputText rendered="#{index%2 !=0 && item.ht1 == null && item.ht == null}"  value="odd"/> <h:outputText rendered="#{item.ht1 != null && item.ht != null}"  value="add_fis1"/> <h:outputText rendered="#{item.ht1 == null && item.ht != null}" value="add_fis"/>" style="width: 140px">
                                <h:outputLink value="customer.jsp?pnPN100=#{item.fn100}"> <h:outputText value="#{item.hoten}" /></h:outputLink>

                            </td>
                            <td class="table_cell   <h:outputText rendered="#{index%2 !=0 && item.ht1 == null && item.ht == null}"  value="odd"/> <h:outputText rendered="#{item.ht1 != null && item.ht != null}"  value="add_fis1"/> <h:outputText rendered="#{item.ht1 == null && item.ht != null}" value="add_fis"/>" style="width: 140px">
                                <h:outputText value="#{item.tv969}" />

                            </td>
                            <td class="table_cell   <h:outputText rendered="#{index%2 !=0 && item.ht1 == null && item.ht == null}"  value="odd"/> <h:outputText rendered="#{item.ht1 != null && item.ht != null}"  value="add_fis1"/> <h:outputText rendered="#{item.ht1 == null && item.ht != null}" value="add_fis"/>" style="width: 140px">
                                <h:outputText value="#{item.tv970}" />

                            </td>
                            <td class="table_cell   <h:outputText rendered="#{index%2 !=0 && item.ht1 == null && item.ht == null}"  value="odd"/> <h:outputText rendered="#{item.ht1 != null && item.ht != null}"  value="add_fis1"/> <h:outputText rendered="#{item.ht1 == null && item.ht != null}" value="add_fis"/>" style="width: 140px">
                                <h:outputText value="#{item.tv957}" />

                            </td>
                            <td class="table_cell   <h:outputText rendered="#{index%2 !=0 && item.ht1 == null && item.ht == null}"  value="odd"/> <h:outputText rendered="#{item.ht1 != null && item.ht != null}"  value="add_fis1"/> <h:outputText rendered="#{item.ht1 == null && item.ht != null}" value="add_fis"/>" style="width: 140px">
                                <h:outputText value="#{item.tv958}" />

                            </td>
                            <td class="table_cell cssCenter  <h:outputText rendered="#{index%2 !=0 && item.ht1 == null && item.ht == null}"  value="odd"/> <h:outputText rendered="#{item.ht1 != null && item.ht != null}"  value="add_fis1"/> <h:outputText rendered="#{item.ht1 == null && item.ht != null}" value="add_fis"/>" style="width: 90px">

                                <h:outputText value="#{item.nv107}"/> 

                            </td>
                            <td class="table_cell   <h:outputText rendered="#{index%2 !=0 && item.ht1 == null && item.ht == null}"  value="odd"/> <h:outputText rendered="#{item.ht1 != null && item.ht != null}"  value="add_fis1"/> <h:outputText rendered="#{item.ht1 == null && item.ht != null}" value="add_fis"/>" style="width: 200px">

                                <h:outputText value="#{item.nv105}"/>

                            </td>
                            <td class="table_cell   <h:outputText rendered="#{index%2 !=0 && item.ht1 == null && item.ht == null}"  value="odd"/> <h:outputText rendered="#{item.ht1 != null && item.ht != null}"  value="add_fis1"/> <h:outputText rendered="#{item.ht1 == null && item.ht != null}" value="add_fis"/>" style="width: 250px">

                                <h:outputText value="#{item.nv112}"/>

                            </td>
                            <td class="table_cell   <h:outputText rendered="#{index%2 !=0 && item.ht1 == null && item.ht == null}"  value="odd"/> <h:outputText rendered="#{item.ht1 != null && item.ht != null}"  value="add_fis1"/> <h:outputText rendered="#{item.ht1 == null && item.ht != null}" value="add_fis"/>" style="width: 250px">

                                <h:outputText value="#{item.tv971}"/> 

                            </td>
                            <td class="table_cell cssCenter  <h:outputText rendered="#{index%2 !=0 && item.ht1 == null && item.ht == null}"  value="odd"/> <h:outputText rendered="#{item.ht1 != null && item.ht != null}"  value="add_fis1"/> <h:outputText rendered="#{item.ht1 == null && item.ht != null}" value="add_fis"/>" style="width: 80px">

                                <h:outputText value="#{item.td954}"> <f:convertDateTime pattern="dd/MM/yyyy"/></h:outputText> 

                            </td>
                            <td class="table_cell cssCenter  <h:outputText rendered="#{index%2 !=0 && item.ht1 == null && item.ht == null}"  value="odd"/> <h:outputText rendered="#{item.ht1 != null && item.ht != null}"  value="add_fis1"/> <h:outputText rendered="#{item.ht1 == null && item.ht != null}" value="add_fis"/>" style="width: 80px">

                                <h:outputText value="#{item.td953}"><f:convertDateTime pattern="dd/MM/yyyy"/></h:outputText> 

                            </td>
                            <td class="table_cell cssCenter  <h:outputText rendered="#{index%2 !=0 && item.ht1 == null && item.ht == null}"  value="odd"/> <h:outputText rendered="#{item.ht1 != null && item.ht != null}"  value="add_fis1"/> <h:outputText rendered="#{item.ht1 == null && item.ht != null}" value="add_fis"/>" style="width: 250px">

                                <h:outputText value="#{item.td964St}"><f:convertDateTime type="TIMESTAMP" pattern="MM/dd/yyyy HH:mm:ss" /> </h:outputText></br>
                                <h:outputText value="#{item.ht}"/> 

                            </td>
                            <td class="table_cell cssCenter  <h:outputText rendered="#{index%2 !=0 && item.ht1 == null && item.ht == null}"  value="odd"/> <h:outputText rendered="#{item.ht1 != null && item.ht != null}"  value="add_fis1"/> <h:outputText rendered="#{item.ht1 == null && item.ht != null}" value="add_fis"/>" style="width: 250px">
                                <h:outputText value="#{item.td966St}"/> </br>
                                <h:outputText value="#{item.ht1}"/>
                            </td>
                            <td class="table_cell cssCenter  <h:outputText rendered="#{index%2 !=0 && item.ht1 == null && item.ht == null}"  value="odd"/> <h:outputText rendered="#{item.ht1 != null && item.ht != null}"  value="add_fis1"/> <h:outputText rendered="#{item.ht1 == null && item.ht != null}" value="add_fis"/>" style="width: 230px">

                                <h:outputText value="#{item.tl998}"/> </br>
                                (<h:outputText value="#{item.tl999}"/>)

                            </td>                                            
                        </tr>
                    </a4j:repeat>
                </table>
            </div>


        </body>
    </f:view>
</html>
